// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
//首页
import index from './index'
//路由加载
import router from './js/routers'
//axios 交互
import axios from 'axios'
//Vuex
import Vuex from 'vuex'
//MD5加密
import md5 from 'js-md5' 
//rem计算单位
import './js/mobile.js'
//公共样式
import './css/public.css'
//矢量图标
import './fonts/iconfont.css'
//公共方法 
import store from  './store/store.js'
//mint-ui
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.prototype.$http = axios
axios.defaults.withCredentials=false;
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded'
Vue.config.productionTip = false 
Vue.use(Vuex)
Vue.use(Mint)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<index/>',
  components: { index }
})
